import request from '@/request';
import type {editFormData , addFormData} from '../@types/index';

/**获取标签列表*/
export const getCommit = (params: { page: number, pageSize: number , title ?: string}) => {
    return request({
        url: '/api/v2/admin/getCommit',
        method: 'get',
        params
    })
} 

/**添加C端用户*/
export const getCommitById = ( params: { ID: string } ) => request({
    url: '/api/v2/admin/getCommitById',
    method: 'get',
    params
}) 

/**删除标签*/
export const delCommit = (data: { ID: string }) => request({
    url: '/api/v2/admin/delCommit',
    method: 'post',
    data
})

/**更新标签信息*/
export const updateCommit = (data: editFormData) => request({
    url: '/api/v2/admin/updateCommit',
    method: 'post',
    data
})